<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

class Lobby extends Controller
{
	function setVars()
	{
		$this->tpl['title'] = "The Nationwide Mobile Billboard Advertising Network";
        $this->tpl['sidebar'] = '';
		$this->tpl['head'] = '';
        $this->tpl['body'] = '';
        define('URI',$this->uri->segment(1).'/'.$this->uri->segment(2));
	}
    
	function __construct()
	{
		parent::Controller();
        $this->load->model('Tamer_Model', 'tm');
        $this->load->library('pquery');
        $this->setVars();
        //$this->load->library('profiler');
        log_message('debug', "Lobby: Controler Class Initialized");
	}
    
    /**
    * @note	index
    * @info	Just forwarding
    * @author	Dennis T. Kaplan
    * @access	public
    * @param	 
    * @return	html page
    */	
    public function index()
    {
        $this->tpl['tpljs'][]  = 'jquery';
        $this->tpl['tpljs'][]  = 'jquery.innerfade';

        $this->tpl['head'] = "\n
		<script type=\"text/javascript\">
        $(document).ready(
        function(){
            $('#news').innerfade({
                animationtype: 'slide',
                speed: 750,
                timeout: 5000,
                type: 'sequence',
                containerheight: '1em'
            });            
            $('#block').innerfade({
                animationtype: 'slide',
                speed: 3000,
                timeout: 20000,
                type: 'sequence',
                containerheight: '16em'
            });
        });
        </script>\n";
        //$this->tpl['sidebar'] .= '<img src="'.BASEURL.'img/blank.gif" width="250" height="1" alt="">'."\n";
        $this->tpl['sidebar'] .= '<h3 class="SideBar">News Ticker</h3>'.$this->tm->newsTicker();
        $this->tpl['sidebar'] .=  $this->tm->randomBlock();
        //$this->tpl['sidebar'] .= $this->tm->recentNews();
        
        $this->tpl['sidebar'] .= '<img src="'.BASEURL.'img/gallery/org/IKEA.gif" width="100%" alt="IKEA Image" />'."\n";
        $this->tpl['body'] .= '<p>PzzAzz offers clients unparalleled marketing influence in the most influential venues in America. The street!</p>';
        $this->tpl['body'] .= '<p>Brand name recognition directed to your community. Use PzzAzz Mobile Advertising for an innovative and effective way to increase your sales.</p>';
        $this->tpl['body'] .= '<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>';
        $this->tpl['body'] .= '<h2><a href="/slideshow.html" target="_blank">If you are here for information and haven\'t seen our presentation then please click here.</a></h2>';
        $this->load->view('blank', $this->tpl);
    }
    
}
?>
